<?php if($message):?>
<div class="main404 box-flex flex-align">
    <div><img src="<?= \Yii::getAlias('@static'); ?>/wap/common/images/404.png" />
        <a href="<?= \Yii::$app->urlManager->createUrl(['index/index']); ?>">返回首页</a>
    </div>
</div>
<?php else:?>
<div class="main404 box-flex flex-align">
    <div><img src="<?= \Yii::getAlias('@static'); ?>/wap/common/images/404-2.png" />
        <a href="<?= \Yii::$app->urlManager->createUrl(['index/index']); ?>">返回首页</a>
    </div>
</div>
<?php endif;?>